# GameSettings.gd（资源类脚本）
extends Resource
class_name GameSettings

@export_category("Graphics")
@export var resolution: Vector2i = Vector2i(1920, 1080)
#@export var vsync_mode: Viewport.VSyncMode = Viewport.VSYNC_ENABLED
@export var msaa_level: Viewport.MSAA = Viewport.MSAA_4X

@export_category("Gameplay")
@export var base_stamina: float = 100.0
@export var hunger_rate: float = 0.5
@export var max_chain_count: int = 10

@export_category("Advanced")
@export var debug_mode: bool = false
@export var physics_ticks: int = 60

# 配置验证方法
func validate() -> bool:
	assert(resolution.x >= 800 && resolution.y >= 600, "Invalid resolution")
	assert(hunger_rate > 0.0, "Hunger rate must be positive")
	return true
